import java.util.Scanner;

public class Java025 {
    public static void main(String[] args) {
        int num = new Scanner(System.in).nextInt();
        palindrome(num);
    }
    public static void palindrome(int num){
        int n=0;
        int m=num;
        while(num>0){
            n=num%10+n*10;
            num/=10;
        }
        if(n==m){
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }
    }
}
